import Layout from '@/pages/public/layout' // 公共部分

const student = [{
  path: '/user/student',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/pages/user/student/account/index.vue'),
    meta: {
      title: '学员列表',
      permission: 'user.student.list'
    }
  }, {
    path: 'vip',
    component: () => import('@/pages/user/student/account/vip.vue'),
    meta: {
      title: '会员列表',
      permission: 'user.student.vip'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/user/student/account/create.vue'),
    meta: {
      title: '新建学员',
      permission: 'user.student.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/user/student/account/edit.vue'),
    meta: {
      title: '编辑学员',
      permission: 'user.student.edit'
    }
  }, {
    path: 'vip/:id/edit',
    component: () => import('@/pages/user/student/account/vip_edit.vue'),
    meta: {
      title: '编辑会员',
      permission: 'user.student.vip.edit'
    }
  }, {
    path: ':id/study',
    component: () => import('@/pages/user/student/account/study.vue'),
    meta: {
      title: '学习记录',
      permission: 'user.student.detail'
    }
  }, {
    path: ':id/cert',
    component: () => import('@/pages/user/student/cert/index.vue'),
    meta: {
      title: '学员证书',
      permission: 'user.student.cert'
    }
  }, {
    path: ':id/course',
    component: () => import('@/pages/user/student/course/index.vue'),
    meta: {
      title: '学员课程',
      permission: 'user.student.course'
    }
  }]
}]

export default student
